package edu.kaist.cs408.pof.backend.service;

import edu.kaist.cs408.pof.backend.dao.TalkDaoImpl;
import edu.kaist.cs408.pof.common.model.TalkVo;
import edu.kaist.cs408.pof.common.service.TalkSvc;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;

import javax.ws.rs.QueryParam;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: duyleekun
 * Date: 5/11/12
 * Time: 11:32 PM
 * To change this template use File | Settings | File Templates.
 */
@Configurable
public class TalkSvcImpl implements TalkSvc {
	@Autowired(required = true)
	TalkDaoImpl talkDao;

	@Override
	public List<TalkVo> getAll(@QueryParam("limit") int limit, @QueryParam("offset") int offset) {
		return talkDao.getAll(offset, limit);
	}
}
